package com.demo.di.factory_bean;

import org.springframework.context.support.GenericXmlApplicationContext;

/**
 * 描述：
 *
 * @author lida
 * @time 2019/10/14 19:25
 */
public class MessageDigestDemo {
	public static void main(String[] args) {
		GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
		ctx.load("classpath:com/demo/di/factory_bean/app-context-xml.xml");
		ctx.refresh();

		MessageDigester digester = ctx.getBean("digester", MessageDigester.class);
		digester.digest("Hello World");
		ctx.close();
	}
}
